package com.bdqn.service;

import com.bdqn.entity.Payment;
import com.bdqn.mapper.PaymentMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("paymentService")
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentMapper paymentMapper;
    public int create(Payment payment){
        return paymentMapper.create(payment);
    }
    public Payment getPaymentById( Long id){
        return paymentMapper.getPaymentById(id);
    }
}